package cz.vutbr.fit.xzemko01.tfmcbs.validation.validators;

import java.util.Map;

import org.eclipse.emf.common.util.DiagnosticChain;

import cz.vutbr.fit.xzemko01.tfmcbs.model.Element;

public final class ElementValidator implements Validator<Element> {
	private static ElementValidator elementValidator;
	
	private ElementValidator() {
	}
	
	public static Validator<Element> getInstance() {
		if(elementValidator == null) {
			elementValidator = new ElementValidator();
		}
		return elementValidator;
	}
	
	@Override
	public boolean validate(Element element, DiagnosticChain diagnostics, Map<Object, Object> context) {
		// There are no validation rules
		return true;
	}
}
